<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@include file="../../common/operation_forbid.jsp" %>
<!DOCTYPE html >
<html lang="en">
<head>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
</head>
<body>
<input type="hidden" value="${project.id}" id="projectId"/>
<div class="page-content">
		<div class="row-fluid">	
			<div class="col-xs-12">
			       <div class="row">
							<div class="widget-main">													
                               &nbsp;&nbsp; 所属项目:&nbsp;&nbsp; ${project.projectName}
							</div>			
					</div>
					<form id="searchForm" class="form-inline" method="POST" onsubmit="return false;">
						<div class="row">
							<div class="widget-main">		
							
								 <c:forEach var="btn" items="${permitBtn}">
        								<c:choose>
											<c:when test="${btn.permission=='estate:projectHouseType:add'}">
											&nbsp;&nbsp;<button type="button" onclick="projecthousetypeToAdd();" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-plus">新增户型</span></button>
											</c:when>
										</c:choose>
										</c:forEach>											
								
								&nbsp;&nbsp;<button type="button" onclick="backProjectDetail();" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-chevron-left">返回</span></button> 
							</div>				
						</div>
						<input type="hidden" name="projectId" value="${project.id}" id="projectId">
						<input type='hidden' class='pageNum' name='pageNum' value='1'/>
						<input type='hidden' class='pageSize'  name='pageSize' value='5'/>
					</form>
	
					<table id="baseTable" class="table table-striped table-bordered table-hover" >
						<thead>
							<tr>
								<!-- <th style="width:1%" class="center">
									<label><input type="checkbox" class="ace" ><span class="lbl"></span></label>	
								</th> -->
								<th  class="center">序号</th>
								<th  class="center">户型名称</th>
								<th  class="center">所属房产</th>
	                            <th  class="center">计算面积</th>
	                            <th  class="center">套内面积</th>
	                            <th  class="center">使用面积</th>
	                            <th  class="center">房型</th>
	                            <th  class="center">是否有户型图</th>
								<th style="width:10%" class="center">操作</th>
							</tr>
						</thead>
						<tbody></tbody>
					</table>
					<div class="row">
						<div class="col-sm-8">
							<!--设置分页位置-->
							<div id="pageing" class="dataTables_paginate paging_bootstrap">
								<ul class="pagination"></ul>
							</div>
						</div>
					</div>
					<%@include file="../../common/dialog.jsp" %>	
			</div>
		</div>
	</div>	
	<div id="permitBtnList" style="display: none;">${permitBtnList}</div>
	<script src="${jypath}/static/js/estate/projecthousetype/projecthousetype.js?v=${jsVersion}"></script>	
	<script>
	$(function () {
		projecthousetypeList(1);
	});
	</script>
</body>
</html>